package com.koron.common.core.business.datadict.mapper;

import com.koron.common.core.business.datadict.bean.po.SysDataDict;
import com.koron.common.core.business.datadict.bean.query.SysDataDictQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统管理-数据字典(SysDataDict)表数据库访问层
 *
 * @author jzp
 * @since 2021-02-02 09:56:08
 */
public interface SysDataDictMapper {

    List<SysDataDict> queryAll(SysDataDict sysDataDict);

    int insert(SysDataDict sysDataDict);

    int update(SysDataDict sysDataDict);

    int deleteById(String id);

    int count(SysDataDict sysDataDict);

    List<SysDataDict> getDictionaryList(SysDataDictQuery sysDataDictQuery);

    Integer getTotal(SysDataDictQuery sysDataDictQuery);

    SysDataDict getByClassifyIdAndCode(@Param("classifyId") String classifyId,@Param("code") String code);

    SysDataDict getSingle(SysDataDictQuery sysDataDictQuery);
}